import App from './App'
import { createSSRApp } from 'vue'
import Header from './components/Header/index.vue'
import PageHeader from './components/PageHeader/index.vue'
import store from './store'

export function createApp() {
  const app = createSSRApp(App)
  
  // 注册全局组件
  app.component('Header', Header)
  app.component('PageHeader', PageHeader)
  
  // 使用 store
  app.use(store)
  
  return {
    app
  }
}